package com.tianyuan.lims.dms.controller.exam.entity;


import com.alibaba.fastjson.JSON;
import com.jfinal.core.Controller;
import com.jfinal.kit.Ret;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;
import com.tianyuan.lims.common.annotation.RequestBody;
import com.tianyuan.lims.dms.controller.exam.entity.QuestionAnswer;
import com.tianyuan.lims.dms.entity.LimsExamQuestion;
import com.tianyuan.lims.dms.entity.LimsExamRecord;
import com.tianyuan.lims.utils.R;
import io.github.yedaxia.apidocs.ApiDoc;

import java.util.Date;
import java.util.List;
import java.util.Map;

// 考试结果类
public class ExamResult {
    private double score;
    private int totalQuestions;
    private int correctCount;

    public ExamResult() {
    }

    public ExamResult(double score, int totalQuestions, int correctCount) {
        this.score = score;
        this.totalQuestions = totalQuestions;
        this.correctCount = correctCount;
    }

    // getter and setter
    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public int getTotalQuestions() {
        return totalQuestions;
    }

    public void setTotalQuestions(int totalQuestions) {
        this.totalQuestions = totalQuestions;
    }

    public int getCorrectCount() {
        return correctCount;
    }

    public void setCorrectCount(int correctCount) {
        this.correctCount = correctCount;
    }
}
